package ysq.xyg.model;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 产品
 * */
@Table(name = "bohu_product")
public class Product implements Serializable {
    @Id
    private String id;
    //产品名称
    private String name;
    //设备id
    @Column(name = "device_id")
    private String deviceId;
    //产品类型id(目前定义1、控制器，2、检测仪）
    @Column(name = "product_type_id")
    private String productTypeId;
    //用户openid
    private String openid;
    //创建时间
    @Column(name = "create_time")
    private Date createTime;
    //预警最大值
    @Column(name = "maxSendValue")
    private Double maxSendValue;
    //发送通知最后时间
    @Column(name = "last_send_time")
    private Date lastSendTime;

    //新的openid
    @Transient
    private String newOpenid;
    @Transient
    private String wxId;
    //用户头像
    @Transient
    private String headImage;
    //用户名称
    @Transient
    private String nickName;
    //手机号
    @Transient
    private String phone;
    //设备最后操作时间
    @Transient
    private Date deviceDate;
    //设备设置城市
    @Transient
    private String deviceCity;
    //类型：1-18具体的看给的文档
    @Transient
    private String type;
    //设备表主键值
    @Transient
    private int deviceEntityId;


    //设备剩余电量:1-100之间
    @Transient
    private String deviceBat;
    //产品类型名称
    @Transient
    private String productTypeName;



    @Transient
    private int relayEntityId;
    //档位1-4
    @Transient
    private String relayKm;
    //手/自动状态  1=自动，0=手动
    @Transient
    private String relayAuto;
    //开/关机：1=开、0=关
    @Transient
    private String relayPower;
    //更新标志,四个按键任何一个按下,把该标志置1
    @Transient
    private String relayStatus;
    @Transient
    private String startDate;
    @Transient
    private String endDate;

    @Transient
    private List<Product> deviceDataList;

    @Transient
    private Product newProduct;

    @Transient
    private int dataId;
    @Transient
    private Date time;
    @Transient
    private String pm2;
    @Transient
    private String pm2Tip;
    @Transient
    private String pm2Color;
    @Transient
    private String pm1;
    @Transient
    private String pm1Tip;
    @Transient
    private String pm1Color;
    @Transient
    private String pm10;
    @Transient
    private String pm10Tip;
    @Transient
    private String pm10Color;
    @Transient
    private String hcho;
    @Transient
    private String hchoTip;
    @Transient
    private String hchoColor;
    @Transient
    private String co2;
    @Transient
    private String co2Tip;
    @Transient
    private String co2Color;
    @Transient
    private String temr;
    @Transient
    private String temrTip;
    @Transient
    private String temrColor;
    @Transient
    private String him;
    @Transient
    private String himTip;
    @Transient
    private String himColor;
    @Transient
    private String aqi;
    @Transient
    private String aqiTip;
    @Transient
    private String aqiColor;
    @Transient
    private String voc;
    @Transient
    private String vocTip;
    @Transient
    private String vocColor;
    @Transient
    private String o2;
    @Transient
    private String o2Tip;
    @Transient
    private String o2Color;
    @Transient
    private String h2s;
    @Transient
    private String h2sTip;
    @Transient
    private String h2sColor;
    @Transient
    private String o3;
    @Transient
    private String o3Tip;
    @Transient
    private String o3Color;
    @Transient
    /**
     * 设备状态：2、离线和1、在线
     */
    private String deviceType;

    @Transient
    private String windSpeed;
    @Transient
    private String windSpeedTip;
    @Transient
    private String windSpeedColor;
    @Transient
    private String windDirection;
    @Transient
    private String windDirectionTip;
    @Transient
    private String windDirectionColor;
    @Transient
    private String noise;
    @Transient
    private String noiseTip;
    @Transient
    private String noiseColor;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDeviceId() {
        return deviceId;
    }

    public void setDeviceId(String deviceId) {
        this.deviceId = deviceId;
    }

    public String getProductTypeId() {
        return productTypeId;
    }

    public void setProductTypeId(String productTypeId) {
        this.productTypeId = productTypeId;
    }

    public String getOpenid() {
        return openid;
    }

    public void setOpenid(String openid) {
        this.openid = openid;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getHeadImage() {
        return headImage;
    }

    public void setHeadImage(String headImage) {
        this.headImage = headImage;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getStartDate() {
        return startDate;
    }

    public void setStartDate(String startDate) {
        this.startDate = startDate;
    }

    public String getEndDate() {
        return endDate;
    }

    public void setEndDate(String endDate) {
        this.endDate = endDate;
    }

    public Date getDeviceDate() {
        return deviceDate;
    }

    public void setDeviceDate(Date deviceDate) {
        this.deviceDate = deviceDate;
    }

    public String getDeviceCity() {
        return deviceCity;
    }

    public void setDeviceCity(String deviceCity) {
        this.deviceCity = deviceCity;
    }

    public String getDeviceBat() {
        return deviceBat;
    }

    public void setDeviceBat(String deviceBat) {
        this.deviceBat = deviceBat;
    }

    public String getProductTypeName() {
        return productTypeName;
    }

    public void setProductTypeName(String productTypeName) {
        this.productTypeName = productTypeName;
    }

    public String getRelayKm() {
        return relayKm;
    }

    public void setRelayKm(String relayKm) {
        this.relayKm = relayKm;
    }

    public String getRelayAuto() {
        return relayAuto;
    }

    public void setRelayAuto(String relayAuto) {
        this.relayAuto = relayAuto;
    }

    public String getRelayPower() {
        return relayPower;
    }

    public void setRelayPower(String relayPower) {
        this.relayPower = relayPower;
    }

    public String getRelayStatus() {
        return relayStatus;
    }

    public void setRelayStatus(String relayStatus) {
        this.relayStatus = relayStatus;
    }

    public Product() {
    }

    public Product(String productTypeId, String openid) {
        this.productTypeId = productTypeId;
        this.openid = openid;
    }


    public List<Product> getDeviceDataList() {
        return deviceDataList;
    }

    public void setDeviceDataList(List<Product> deviceDataList) {
        this.deviceDataList = deviceDataList;
    }

    public int getDataId() {
        return dataId;
    }

    public void setDataId(int dataId) {
        this.dataId = dataId;
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    public String getPm2() {
        return pm2;
    }

    public void setPm2(String pm2) {
        this.pm2 = pm2;
    }

    public String getPm1() {
        return pm1;
    }

    public void setPm1(String pm1) {
        this.pm1 = pm1;
    }

    public String getPm10() {
        return pm10;
    }

    public void setPm10(String pm10) {
        this.pm10 = pm10;
    }

    public String getHcho() {
        return hcho;
    }

    public void setHcho(String hcho) {
        this.hcho = hcho;
    }

    public String getCo2() {
        return co2;
    }

    public void setCo2(String co2) {
        this.co2 = co2;
    }

    public String getTemr() {
        return temr;
    }

    public void setTemr(String temr) {
        this.temr = temr;
    }

    public String getHim() {
        return him;
    }

    public void setHim(String him) {
        this.him = him;
    }

    public String getAqi() {
        return aqi;
    }

    public void setAqi(String aqi) {
        this.aqi = aqi;
    }

    public String getVoc() {
        return voc;
    }

    public void setVoc(String voc) {
        this.voc = voc;
    }

    public String getO2() {
        return o2;
    }

    public void setO2(String o2) {
        this.o2 = o2;
    }

    public String getH2s() {
        return h2s;
    }

    public void setH2s(String h2s) {
        this.h2s = h2s;
    }

    public String getO3() {
        return o3;
    }

    public void setO3(String o3) {
        this.o3 = o3;
    }

    public Product getNewProduct() {
        return newProduct;
    }

    public void setNewProduct(Product newProduct) {
        this.newProduct = newProduct;
    }

    public Product(String deviceId) {
        this.deviceId = deviceId;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public int getDeviceEntityId() {
        return deviceEntityId;
    }

    public void setDeviceEntityId(int deviceEntityId) {
        this.deviceEntityId = deviceEntityId;
    }

    public String getDeviceType() {
        return deviceType;
    }

    public void setDeviceType(String deviceType) {
        this.deviceType = deviceType;
    }

    public int getRelayEntityId() {
        return relayEntityId;
    }

    public void setRelayEntityId(int relayEntityId) {
        this.relayEntityId = relayEntityId;
    }

    public String getPm2Tip() {
        return pm2Tip;
    }

    public void setPm2Tip(String pm2Tip) {
        this.pm2Tip = pm2Tip;
    }

    public String getPm2Color() {
        return pm2Color;
    }

    public void setPm2Color(String pm2Color) {
        this.pm2Color = pm2Color;
    }

    public String getPm1Tip() {
        return pm1Tip;
    }

    public void setPm1Tip(String pm1Tip) {
        this.pm1Tip = pm1Tip;
    }

    public String getPm1Color() {
        return pm1Color;
    }

    public void setPm1Color(String pm1Color) {
        this.pm1Color = pm1Color;
    }

    public String getPm10Tip() {
        return pm10Tip;
    }

    public void setPm10Tip(String pm10Tip) {
        this.pm10Tip = pm10Tip;
    }

    public String getPm10Color() {
        return pm10Color;
    }

    public void setPm10Color(String pm10Color) {
        this.pm10Color = pm10Color;
    }

    public String getHchoTip() {
        return hchoTip;
    }

    public void setHchoTip(String hchoTip) {
        this.hchoTip = hchoTip;
    }

    public String getHchoColor() {
        return hchoColor;
    }

    public void setHchoColor(String hchoColor) {
        this.hchoColor = hchoColor;
    }

    public String getCo2Tip() {
        return co2Tip;
    }

    public void setCo2Tip(String co2Tip) {
        this.co2Tip = co2Tip;
    }

    public String getCo2Color() {
        return co2Color;
    }

    public void setCo2Color(String co2Color) {
        this.co2Color = co2Color;
    }

    public String getTemrTip() {
        return temrTip;
    }

    public void setTemrTip(String temrTip) {
        this.temrTip = temrTip;
    }

    public String getTemrColor() {
        return temrColor;
    }

    public void setTemrColor(String temrColor) {
        this.temrColor = temrColor;
    }

    public String getHimTip() {
        return himTip;
    }

    public void setHimTip(String himTip) {
        this.himTip = himTip;
    }

    public String getHimColor() {
        return himColor;
    }

    public void setHimColor(String himColor) {
        this.himColor = himColor;
    }

    public String getAqiTip() {
        return aqiTip;
    }

    public void setAqiTip(String aqiTip) {
        this.aqiTip = aqiTip;
    }

    public String getAqiColor() {
        return aqiColor;
    }

    public void setAqiColor(String aqiColor) {
        this.aqiColor = aqiColor;
    }

    public String getVocTip() {
        return vocTip;
    }

    public void setVocTip(String vocTip) {
        this.vocTip = vocTip;
    }

    public String getVocColor() {
        return vocColor;
    }

    public void setVocColor(String vocColor) {
        this.vocColor = vocColor;
    }

    public String getO2Tip() {
        return o2Tip;
    }

    public void setO2Tip(String o2Tip) {
        this.o2Tip = o2Tip;
    }

    public String getO2Color() {
        return o2Color;
    }

    public void setO2Color(String o2Color) {
        this.o2Color = o2Color;
    }

    public String getH2sTip() {
        return h2sTip;
    }

    public void setH2sTip(String h2sTip) {
        this.h2sTip = h2sTip;
    }

    public String getH2sColor() {
        return h2sColor;
    }

    public void setH2sColor(String h2sColor) {
        this.h2sColor = h2sColor;
    }

    public String getO3Tip() {
        return o3Tip;
    }

    public void setO3Tip(String o3Tip) {
        this.o3Tip = o3Tip;
    }

    public String getO3Color() {
        return o3Color;
    }

    public void setO3Color(String o3Color) {
        this.o3Color = o3Color;
    }

    public Double getMaxSendValue() {
        return maxSendValue;
    }

    public void setMaxSendValue(Double maxSendValue) {
        this.maxSendValue = maxSendValue;
    }

    public Date getLastSendTime() {
        return lastSendTime;
    }

    public void setLastSendTime(Date lastSendTime) {
        this.lastSendTime = lastSendTime;
    }

    public String getNewOpenid() {
        return newOpenid;
    }

    public void setNewOpenid(String newOpenid) {
        this.newOpenid = newOpenid;
    }

    public String getWindSpeed() {
        return windSpeed;
    }

    public void setWindSpeed(String windSpeed) {
        this.windSpeed = windSpeed;
    }

    public String getWindDirection() {
        return windDirection;
    }

    public void setWindDirection(String windDirection) {
        this.windDirection = windDirection;
    }

    public String getNoise() {
        return noise;
    }

    public void setNoise(String noise) {
        this.noise = noise;
    }

    public String getWindSpeedTip() {
        return windSpeedTip;
    }

    public void setWindSpeedTip(String windSpeedTip) {
        this.windSpeedTip = windSpeedTip;
    }

    public String getWindSpeedColor() {
        return windSpeedColor;
    }

    public void setWindSpeedColor(String windSpeedColor) {
        this.windSpeedColor = windSpeedColor;
    }

    public String getWindDirectionTip() {
        return windDirectionTip;
    }

    public void setWindDirectionTip(String windDirectionTip) {
        this.windDirectionTip = windDirectionTip;
    }

    public String getWindDirectionColor() {
        return windDirectionColor;
    }

    public void setWindDirectionColor(String windDirectionColor) {
        this.windDirectionColor = windDirectionColor;
    }

    public String getNoiseTip() {
        return noiseTip;
    }

    public void setNoiseTip(String noiseTip) {
        this.noiseTip = noiseTip;
    }

    public String getNoiseColor() {
        return noiseColor;
    }

    public void setNoiseColor(String noiseColor) {
        this.noiseColor = noiseColor;
    }

    public String getWxId() {
        return wxId;
    }

    public void setWxId(String wxId) {
        this.wxId = wxId;
    }
}